package com.elitecore.beans;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test 
{
	public static void main(String[] args) throws Exception  
	{
		ApplicationContext context = new ClassPathXmlApplicationContext("SpringBeans.xml");
 
		//Test1 obj = (Test1) context.getBean("test_1");
		
		Test2 obj1=(Test2)context.getBean("test_2");		
		System.out.println(obj1);
		
		Test2 obj2=(Test2)context.getBean("test_2");
		System.out.println(obj2);
		
		//Test4 t4=(Test4)context.getBean("test_4");
		//System.out.println(t4);
		//Test4 t5=(Test4)context.getBean("test_4");
		//System.out.println(t5);
		
		//UserInfo obj=(UserInfo)context.getBean("aoprun");
		
		//obj.AOPTest("passing 12345");
		//obj.display();
		//obj.getTest3().display();
		//obj.display("TEst");
		//obj.testAfterAdvice();
		
		//obj.testThrowAdvice();
		
	}
}